package top.ajun.config;

import cn.hutool.captcha.CaptchaUtil;
import cn.hutool.captcha.LineCaptcha;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 验证码配置
 *
 * @author AJun
 * @date 2020/12/2
 */
@Configuration
public class CaptchaConfig {

    @Bean
    public LineCaptcha producer() {
        return CaptchaUtil.createLineCaptcha(100, 50, 4, 8);
    }

}
